<?php
global $app_dir;

define("APP_DIR", $app_dir . "/");
define("SMARTY_DIR", $app_dir . "/includes/smarty/libs/");

require 'smarty/libs/Smarty.class.php';

class MySmarty extends smarty
{
    function MySmarty()
    {
    $this->template_dir    =  APP_DIR . FOLDER_TEMPLATES. '/' . TEMPLATE_NAME;
		$this->compile_dir     =  APP_DIR . FOLDER_TEMPLATES_C. '/' . TEMPLATE_NAME;
		$this->config_dir      =  APP_DIR . 'configs';
		$this->cache_dir      =  APP_DIR . 'cache';
		
		$this->compile_check = true;
		$this->debugging = false;
		
		$this->caching = false; 
    }
}

$smarty = new MySmarty();
?>